﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Infra.Common.DAO;
using Infra.Entity;

namespace Infra.Business
{
    public class ResouceBLL
    {
        public static void Salvar(int CodRSouce, String nomeRSouce, string ResouceID)
        {
            //Caso seja passado algum Coodigo será actualizado o reggisto
            SEGRESOUCE RS = new SEGRESOUCE();
            RS.CODRESOURCE = CodRSouce;
            RS.STRRESOURCENAME = nomeRSouce;
            RS.STRRESOURCEID = ResouceID;

            ResouceDAL.Salvar(RS);
        }

        public static void Excluir(int CodRSouce)
        {
            ResouceDAL.Excluir(CodRSouce);
        }
    }
}
